package com.cyx.exam.mapper;

import com.cyx.exam.entity.Exam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author cyx
 * @since 2021-03-09
 */
public interface ExamMapper extends BaseMapper<Exam> {
    @Select("select sum(score) from qu where exam_id=#{id}")
    public int score(Integer id);
}
